package com.wuba.rxjavademo.lyz.day0602;

import android.os.AsyncTask;

import com.wuba.rxjavademo.lyz.BaseDemo;

/**
 * Created by liyaxing on 2016/6/2.
 */
public class Demo02 extends BaseDemo {

    public static void main(String[] ss){





    }

    public static void test(){
        for (int i = 0; i < 10; i++) {
            AsyncTask asyncTask = new AsyncTask() {
                @Override
                protected Object doInBackground(Object[] params) {
                    print("thread id : " + Thread.currentThread().getId());
                    try {
                        Thread.sleep(5000);
                    } catch (InterruptedException e) {
                        e.printStackTrace();
                    }
                    return null;
                }
            } ;
            asyncTask.execute() ;
        }
    }

}
